wayland: Don't warn if we loose the compositor connection
authorMatthias Clasen <mclasen@redhat.com>
Wed, 30 Nov 2016 18:43:54 +0000 (13:43 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 30 Nov 2016 18:45:04 +0000 (13:45 -0500)
And instead, exit cleanly. This avoids filling the logs with
these warnings from every single application that has a
connection to the compositor.

gdk/wayland/gdkeventsource.c

index a239cab0467450603f9126caefc96ba00d09edf4..142091733b9248f26d869e12bfbf21be6e327653 100644 (file)
@@ -89,7 +89,10 @@ gdk_event_source_check (GSource *base)
       if (source->pfd.revents & G_IO_IN)
         {
           if (wl_display_read_events (display_wayland->wl_display) < 0)
-            g_error ("Error reading events from display: %s", g_strerror (errno));
+            {
+              g_message ("Error reading events from display: %s", g_strerror (errno));
+              _exit (1);
+            }
         }
       else
         wl_display_cancel_read (display_wayland->wl_display);